//
//  BaseViewController.swift
//  NavgationDemo
//
//  Created by 肖伟华 on 2021/11/28.
//

import UIKit

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.setCustomNav()
        self.view.backgroundColor = .red
        // Do any additional setup after loading the view.
    }

    func setCustomNav(color: UIColor = .white) {
        self.gk_navigationItem.title = " "
        self.gk_navBackgroundColor = color
        self.gk_statusBarStyle = .lightContent
        self.gk_navTitleFont = UIFont.boldSystemFont(ofSize: 18)
        self.gk_navTitleColor = .darkGray
        self.gk_navLineHidden = true
    }
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
